package com.spring.hx.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.spring.hx.entity.User;

@Mapper
public interface UserMapper {
	
	@Select("select t.* from user t where t.id = #{id}")
	User getById(Long id);

//	@Select("select t.* from user t where ")

	@Select("select t.* from user t where t.wx_nickname = #{name} and t.pwd = #{pwd}")
	User getByPwd(String name,String pwd);



}
